package com.mz.ozy.mvp.view;

import android.app.Activity;
import android.content.Context;

import com.mz.ozy.base.BasePresenter;
import com.mz.ozy.base.BaseView;
import com.mz.ozy.bean.OrderBean;

import org.json.JSONObject;

/**
 * Created by Administrator on 2018/12/7.
 */

public interface PrivateOrderContract {

    interface View extends BaseView {

        void onSubmitSuccess(OrderBean orderBean);

        void onSubmitError(String msg);

        void onPaySuccess(JSONObject orderBean);

        void onPayError(String s);
    }

    interface Presenter extends BasePresenter<View> {
        void detailSubmit(Activity activity, String id, String gid, String aid, String freightId, String remark, String cardid);

        void onPay(Context contex, String orderId, String type, String pwd);
    }
}
